﻿@model RutTrichThongTin.ThongTinTyGia
@{    
    var ThongTinTyGia=Session["ThongTinTyGia"];
    var ListTyGia = ((RutTrichThongTin.ThongTinTyGia)ThongTinTyGia).DsTyGia;
    var TyGiaHien = ((RutTrichThongTin.ThongTinTyGia)ThongTinTyGia).TyGiaHienTai;
    
}

<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $('#LoaiTienTe').bind("change", function () {

                var URL = "Home/ThayDoiTienTe/" + $('#LoaiTienTe').val();
                $.ajax({
                    type: "POST",
                    url: URL,
                    data: {},
                    dataType: "json",
                    success: function (data) {
                    }
                });
            });


        });
    </script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>Feeder Application</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <div style="text-align:center">
                    <label style="color:white">Đơn vị tiền tệ</label>
                    @Html.DropDownList("LoaiTienTe",new SelectList(ListTyGia,"key","key",TyGiaHien))
                </div>          
                                                      
                <ul id="menu">
                    <li>@Html.ActionLink("Trang chủ", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li>@Html.ActionLink("Vé máy bay", "VeMayBay", "Feeder")</li>
                    <li>@Html.ActionLink("Điện thoại", "DienThoai", "Feeder")</li>                    
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
